package com.gp.testonline.dao;

import com.gp.testonline.eo.StudentEOPage;
import com.gp.testonline.model.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 学生表操作接口
 */
@Mapper
public interface StudentMapper {

    //通过学生id获取
    int getStudentIdCount(String studentid);

    //添加学生
    int insertStudent(Student student);

    //通过主键更新学生
    int updateStudent(Student student);

    //通过主键删除学生
    int deleteStudent(Integer sid);

    //根据条件获取相关信息
    List<StudentEOPage> getStudentAll(StudentEOPage studentEOPage);
}
